home *** CD-ROM | disk | FTP | other *** search
- Path: news.uh.edu!pmn12564
- From: pmn12564@Bayou.UH.EDU (pat neff)
- Newsgroups: comp.lang.c++
- Subject: Re: Input from non-ASCII keys
- Date: 12 Mar 1996 18:58:34 GMT
- Organization: University of Houston
- Message-ID: <4i4hgq$gaj@masala.cc.uh.edu>
- References: <4hrg9e$565@news.voicenet.com>
- NNTP-Posting-Host: bayou.uh.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- deaton@cygnus.rsabbs.com wrote:
-
- : Does anyone know how to get input from the arrow-keys and the page-up/page-down keys?
-
- : deaton@cygnus.rsabbs.com
-
- These keys are special keys on the PC. In Borland (I'm sure MS C is
- the same), you need to do a normal getch. If it is NULL, then the next
- key will be the special key. For PAGEDOWN:
-
- char ch;
-
- ch = getch ();
- if (!ch)
- {
- ch = getch();
- if (ch == 0x51)
- puts ("pagedown was pressed");
- else
- puts ("special key was pressed");
- }
-
-